home *** CD-ROM | disk | FTP | other *** search
/ QuickTime for the Web (2nd Edition) / QuickTime for the Web (2nd Edition).iso / pc / AppleScript / QUICKTIME 5.0.2 SCRIPTS / Example Files / Track Syntax Examples / add image track w_duration < prev    next >
Encoding:
Text File  |  2001-06-04  |  487 b   |  14 lines

  1. tell application "QuickTime Player"
  2.     launch
  3.     activate
  4.     stop every movie
  5.     try
  6.         set the chosen_file to choose file of type {"JPEG", "GIFf", "PICT", "TIFF"} with prompt "Pick an image file:"
  7.         make new movie
  8.         set this_track to make new track at movie 1 with data chosen_file
  9.         set the duration of the first frame of this_track to (the time scale of movie 1) * 10 -- 10 seconds
  10.     on error error_message
  11.         beep
  12.         display dialog error_message buttons {"OK"} default button 1
  13.     end try
  14. end tell